const HTTP = require("./request");
const {url} = require("./config");


    

module.exports = {
    getCategoryData:function(){
        return HTTP({
            url: url+'/api/public/v1/categories',
        })
    },
        //获取商品列表搜索
    getTwoCategoryData:function(data){
        return HTTP({
            url:url+'/api/public/v1/goods/search',
            data,
            method:"get"
        })
    },
    //搜索建议查询
    getSearchData:function(data){
        return HTTP({
            url:url+'/api/public/v1/goods/qsearch',
            data,
            method:"get"
        })
    }
}